  $.ajax({
      url: "https://minitest.17jxyx.com/api/v1/token/file/goods",
      datagoods:"json",
      beforeSend: function(request) {
          request.setRequestHeader("token",window.base.getLocalStorage('token'));
      },
      success: function(res){
        console.log(res)
        var token = res.token;
        var domain = res.url;
        var config = {
          useCdnDomain: true,
          disableStatisticsReport: true,
          retryCount: 6,
          region: qiniu.region.z2
        };
        var putExtra = {
          fname: "",
          params: {},
          mimeType: null
        };
        // $(".nav-box")
        //   .find("a")
        //   .each(function(index) {
        //     $(this).on("click", function(e) {
        //       switch (e.target.name) {
        //         case "h5":
        //           uploadWithSDK(token, putExtra, config, domain);
        //           break;
        //         case "expand":
        //           uploadWithOthers(token, putExtra, config, domain);
        //           break;
        //         case "directForm":
        //           uploadWithForm(token, putExtra, config);
        //           break;
        //         default:
        //           "";
        //       }
        //     });
        //   });
        imageControl(domain);
        uploadWithSDK(token, putExtra, config, domain,'goods');
      }
    })
